package miniqq.data;

import com.example.MiniQQ.R;

import android.content.Context;

public class UserInf {
	private String userName;
	private String password;
	private String phoneNum;
	
	private String serverIp;
	private int serverPort;
	private String serverName;
	
	public UserInf(Context context,String _name,String _password,String _phoneNum){
		this.userName = _name;
		this.password = _password;
		this.phoneNum = _phoneNum;
		this.serverIp = context.getString(R.string.server_ip);
		this.serverPort = Integer.valueOf(context.getString(R.string.server_port));
		this.serverName = context.getString(R.string.server_name);
	}
	
	public String getName(){
		return userName;
	}
	
	public String getPassword(){
		return password;
	}
	
	public String getPhoneNum(){
		return phoneNum;
	}
	
	public String getServerIp(){
		return serverIp;
	}
	
	public int getServerPort(){
		return serverPort;
	}
	
	public String getServerName(){
		return serverName;
	}
	
	public void setServerIp(String ip){
		this.serverIp = ip;
	}
	
	public void setServerName(String name){
		this.serverName = name;
	}
	
	public void setServerPort(int port){
		this.serverPort = port;
	}
}
